home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta name="generator" content="amaya 5.2" />
- <title>Creating a Target Element</title>
- <style type="text/css"> </style>
- <link href="../style.css" rel="stylesheet" type="text/css" />
- </head>
-
- <body xml:lang="en" lang="en">
-
- <table border="0" summary="toc">
- <tbody>
- <tr>
- <td><img alt="W3C" src="../../images/w3c_home" /> <img alt="Amaya"
- src="../../images/amaya.gif" /></td>
- <td><p><a href="creating_a_target_anchor.html" accesskey="p"><img alt="previous"
- src="../../images/left.gif" /></a>
- <a href="../Links.html" accesskey="t"><img alt="top" src="../../images/up.gif" /></a>
- <a href="removing_a_link_or_a_target_anchor.html" accesskey="n"><img alt="next"
- src="../../images/right.gif" /></a></p>
- </td>
- </tr>
- </tbody>
- </table>
-
- <div id="page_body">
- <h1>Creating a Target Element</h1>
-
- <p>In HTML 4.0, an element can be used as a link target. A target element is
- a typed element with an <code>ID</code> attribute to which the link refers (a
- source anchor). Before creating a link to such an element, you must first
- turn it into a target element.</p>
-
- <p class="ProcedureCaption">To create a target element:</p>
- <ol>
- <li>Click and drag to select a character string within the element, or
- press the <strong>Esc </strong>key (Unix) or <strong>F2</strong> key
- (Windows) to select the entire element.
- <p></p>
- </li>
- <li>Open the <strong>Links</strong> menu and select <strong>Create Target.
- </strong>The selected element now has an ID attribute that identifies it
- as a target element. Amaya automatically generates a unique
- <code>ID</code> value. In Formatted view, if <strong>Show
- Targets</strong> is turned on, the target element is preceded by an icon.
- In the Links view, icons that identify target anchors are always
- displayed.
- <p></p>
- <p class="ProcedureNote"><strong>Note:รกรกรก </strong>You can also directly
- create the <code>ID</code> attribute by selecting the element and using
- the <strong>Attributes</strong> menu. When you enter an attribute value,
- Amaya checks it for uniqueness, and changes the value if it is already
- used by another <code>NAME</code> or <code>ID</code> attribute in the
- same document. Another method for creating <code>ID</code> attributes is
- using <strong>Add/Remove IDs</strong> from the <strong>Special</strong>
- menu. Selecting this function automatically adds an <code>ID</code>
- attribute to all elements of a given name within the whole document, or
- within the current selection. Simply type the element name and click the
- <strong>Add ID</strong> button.</p>
- </li>
- </ol>
- </div>
-
- </body>
- </html>
-